import { Component, EventEmitter, OnInit, Output } from '@angular/core';

@Component({
  selector: 'app-footer',
  templateUrl: './footer.component.html',
  styleUrls: ['./footer.component.less']
})
export class FooterComponent implements OnInit {

  @Output() private outer=new EventEmitter();

  constructor() { }

  ngOnInit(): void {
  }

  run():void{
    console.log("footer的run方法执行了")
  }

  runEvent():void{
    this.outer.emit("hello我是子组件数据");
  }

}
